__kernel
void basic_opencl(__global float *matrix, __global float *v, __const int rows, __const int cols, __global float *answer) {
  int row = get_global_id(0);
  float accumulator = 0;
  int rowStart = row * cols;

  for(int col = 0; col < cols; col++) {
      accumulator += matrix[rowStart + col] * v[col];
  }
  answer[row] = accumulator;
}